package com.qf.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
@RequestMapping("myapi")
public class HomeworkController {
    @RequestMapping("/user")
    public String user(String name,Integer age,String address,HttpServletRequest request){
        request.setAttribute("name",name);
        request.setAttribute("age",age);
        request.setAttribute("address",address);
        return "view/welcome";

    }
}
